<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>粮油集团办公自动化协作平台</title>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" id="txlz7"/>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>ajaxFramework/ext-2.1/resources/css/ext-all.css" />
	<script type="text/javascript" src="<%=basePath%>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
  	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/source/locale/ext-lang-zh_CN.js"></script>
	<style type="text/css">
			td {
				font:12px/170% "宋体", "新宋体", "黑体"; color:#000
			}
			th {
				font:12px/170% "宋体", "新宋体", "黑体"; color:#000
			}
	</style>
	<script type="text/javascript">
   		window.onload = function(){
		document.getElementById("right").style.width = document.body.clientWidth-5;
		var tb = new Ext.Toolbar(
			{
				height:25
			}
		);
	
	    tb.render('menu');
		tb.add(
	    {
	            text:'继续发送新文件',
	            iconCls: 'daohang',
	        	handler: function(){
					location.href="<%=basePath %>fileExpress/fileExpress.jsp";
				}
	    },
	    {
	            text:'返回文件速递',
	            iconCls: 'daohang',
	        	handler: function(){
					location.href="<%=basePath%>tjsinfo/tjsoa/fileExpress/loginFileExpress.do";
				}
	    }
	    );
		tb.addFill();
	    tb.addText('<img id="windowResize" src="<%=basePath%>images/m_icon05.gif;"><a style="font-weight:bold; color:black;line-height: 22px;">发送情况</a>&nbsp;&nbsp;&nbsp;');
	}
   	</script>
	 <%
		String returnString = (String)request.getAttribute("returnString");
		List listFileName = (List)request.getAttribute("listFileName");
		List fasongUser = (List)request.getAttribute("fasongUser");
   %>
  </head>
  <body>
  	<div id="right" style="height: 100%;">
		<div id="menu" style="padding-top:4px;"></div>
      <div class="contact_content" style="height: 92%;border-top:0px;">
         	  	    <table width="65%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:10px">
                      <tr>
                        <td height="60">
                        <%
                        	if("".equals(returnString)){
                        %>
                        <img src="<%=basePath%>images/wjsdright.gif" />
                        <%	
                        	}else{
                        %>
                        <img src="<%=basePath%>images/wjsdwrong.gif" />	
                        <%
                        	}
                         %>
                        </td>
                      </tr>
                      <tr>
                        <td>
                        	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="50%"  valign="top">
                                	<table width="100%" border="0" cellspacing="0" cellpadding="0" >
                                      <tr>
                                        <td><img src="<%=basePath%>images/wjm01.gif" /></td>
                                      </tr>
                                      <tr>
                                        <td class="wjsd_wjm02">
                                        	<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" class="wjsd_ttaa">
                                              <tr bgcolor="#F1F2F2">
                                                <th>发送文件名</th>
                                              </tr>
                                              <%
                                              	int i =  1;
                                              	for (Iterator iterator = listFileName.iterator(); iterator
													.hasNext();) {
													String name = (String) iterator.next();
													if(i%2 == 0){
												%>
												<tr bgcolor="#F1F2F2">
                                                <td><%=name.substring(name.lastIndexOf("\\")+1,name.length()) %></td>
                                              </tr>
												<%	
													}else{
												%>
												<tr>
                                                <td><%=name.substring(name.lastIndexOf("\\")+1,name.length()) %></td>
                                              </tr>
												<%	
													}
													i++;
												}
                                               %>
                                            </table>
                                        </td>
                                      </tr>
                                      <tr>
                                        <td><img src="<%=basePath%>images/wjm03.gif" /></td>
                                      </tr>
                                    </table>
                                </td>
                                <td width="50%">
                                <div style="height: 250px;overflow-y: scroll;">
                                	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td><img src="<%=basePath%>images/wjm01.gif" /></td>
                                      </tr>
                                      <tr>
                                        <td class="wjsd_wjm02">
                                        	<table width="92%" border="0" cellspacing="0" cellpadding="0" align="center" class="wjsd_ttaa">
                                              <tr bgcolor="#F1F2F2">
                                                <th width="60%">接收人</th>
                                                <th width="40%">状态</th>
                                              </tr>
                                              <%
                                              	int j = 1;
                                              	for (Iterator iterator = fasongUser.iterator(); iterator
													.hasNext();) {
													String username = (String) iterator.next();
													if(j%2 == 0){
											 %>
											<tr bgcolor="#F1F2F2">
                                                <td align="center"><%=username %></td>
                                                <td align="center">成功</td>
                                              </tr>
											 <%	
													}else{
												%>
												<tr>
                                                <td align="center"><%=username %></td>
                                                <td align="center">成功</td>
                                              </tr>
												<%
													}
													j++;
                                              	}
                                               %>
                                            </table>
                                        </td>
                                      </tr>
                                      <tr>
                                        <td><img src="<%=basePath%>images/wjm03.gif" /></td>
                                      </tr>
                                    </table>
                                   </div>
                                </td>
                              </tr>
                            </table>
                        </td>
                      </tr>
                      <tr>
                      	<td background="<%=basePath%>images/line02.gif" height="5px"></td>
                      </tr>
                      <tr>
                      	<td align="center">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:10px;">
                              <tr>
                              <%
                              	if("".equals(returnString)){
                              %>
                              <th style="color: blue">操作成功！
                              </th>
                              <%
                              	}else{
                              %>
                              <th style="color: red"><%=returnString %>
                              </th>
                              <%
                              	}
                               %>
                              </tr>
                            </table>
                        </td>
                      </tr>
               		</table>
            </div>
</div>
  </body>
</html>
